From dc81854161aa6378475166081fe3d802a36f439b Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 4 Apr 2010 12:01:42 +0000 Subject: [PATCH] Avoid PHP notice about undefined variable $diffText if $wgFeedDiffCutoff is 0 --- includes/FeedUtils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/FeedUtils.php b/includes/FeedUtils.php index c634014c3e..9daffc12f7 100644 --- a/includes/FeedUtils.php +++ b/includes/FeedUtils.php @@ -124,7 +124,7 @@ class FeedUtils { $wgLang->time( $timestamp ) ) ); } - if ( ( strlen( $diffText ) > $wgFeedDiffCutoff ) || ( $wgFeedDiffCutoff <= 0 ) ) { + if ( $wgFeedDiffCutoff <= 0 || ( strlen( $diffText ) > $wgFeedDiffCutoff ) ) { // Omit large diffs $diffLink = $title->escapeFullUrl( 'diff=' . $newid . -- 2.20.1